﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Farmacia.Entities;
using Farmacia.BussinessLogic;   
using Microsoft.Practices.Unity;
using Farmacia.Entities.Almacen.GrupoFarma;
using Farmacia.BussinessLogic.Almacen.GrupoFarma;  
using Farmacia.Entities.Almacen.Laborat;
using Farmacia.BussinessLogic.Almacen.Laborat; 
using Farmacia.Entities.Almacen.PrincAct;
using Farmacia.BussinessLogic.Almacen.PrincActivo; 


namespace Farmacia.net.Almacen
{
    public partial class frmBuscarProducto : BasePage<frmBuscarProducto>  
    {
        
        [Dependency]
        public iProductoBL  ProductoBL { get; set; }
        [Dependency]
        public iProveedorBL ProveedorBL { get; set; }
        [Dependency]
        public IGrupoFarmBL GrupoFarmaBL { get; set; }
        [Dependency]
        public iLaboratorioBL LaboratorioBL { get; set; }
        [Dependency]
        public IPrincipioActivoBL PrincipioActivoBL { get; set; }


        protected void btnBuscar_Click(object sender, EventArgs e)
        {

        }

        protected void ObjectDataSource1_ObjectCreating(object sender, ObjectDataSourceEventArgs e)
        {
            e.ObjectInstance = ProductoBL;
        }

        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void OdsProveedor_ObjectCreating(object sender, ObjectDataSourceEventArgs e)
        {
            e.ObjectInstance = ProveedorBL;
        }

        protected void odsGrupoFarma_ObjectCreating(object sender, ObjectDataSourceEventArgs e)
        {
            e.ObjectInstance = GrupoFarmaBL;
        }

        protected void ODSLaboratorio_ObjectCreating(object sender, ObjectDataSourceEventArgs e)
        {
            e.ObjectInstance = LaboratorioBL;
        }

        protected void ODSPrincipioActivo_ObjectCreating(object sender, ObjectDataSourceEventArgs e)
        {
            e.ObjectInstance = PrincipioActivoBL;
        }

        protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
        {

        }
    }
}